/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Codigo;

import javax.swing.ImageIcon;

/**
 *
 * @author Ricardo
 */
public class FrmDecision extends javax.swing.JFrame {

    /**
     * Creates new form FrmDecision
     */
    public FrmDecision() {
        this.setIconImage(new ImageIcon(getClass().getResource("/Imagenes/wizard35.png")).getImage());
        this.getContentPane().setBackground(new java.awt.Color(244, 243, 176));
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        cmdDesarrollo = new javax.swing.JButton();
        cmdCorretaje = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Elección");
        setResizable(false);

        cmdDesarrollo.setBackground(new java.awt.Color(255, 255, 255));
        cmdDesarrollo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Casa.png"))); // NOI18N
        cmdDesarrollo.setText("Desarrollo");
        cmdDesarrollo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmdDesarrolloActionPerformed(evt);
            }
        });

        cmdCorretaje.setBackground(new java.awt.Color(255, 255, 255));
        cmdCorretaje.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Tipos.png"))); // NOI18N
        cmdCorretaje.setText("Corretaje");
        cmdCorretaje.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmdCorretajeActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(50, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(cmdCorretaje, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cmdDesarrollo, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(47, 47, 47))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(45, 45, 45)
                .addComponent(cmdCorretaje, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(cmdDesarrollo, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(48, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void cmdCorretajeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmdCorretajeActionPerformed
        FrmCasas ventanaCasas = new FrmCasas();
        ventanaCasas.setLocationRelativeTo(null);
        ventanaCasas.setVisible(true);
        dispose();
    }//GEN-LAST:event_cmdCorretajeActionPerformed

    private void cmdDesarrolloActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmdDesarrolloActionPerformed
        FrmCasas ventanaCasas = new FrmCasas(true);
        ventanaCasas.setLocationRelativeTo(null);
        ventanaCasas.setVisible(true);
        dispose();
    }//GEN-LAST:event_cmdDesarrolloActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton cmdCorretaje;
    private javax.swing.JButton cmdDesarrollo;
    // End of variables declaration//GEN-END:variables
}
